package com.yuqing.myblogServe.service;

import com.yuqing.myblogServe.common.lang.PageBean;
import com.yuqing.myblogServe.dao.entity.Article;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yuqing.myblogServe.dao.entity.ArticleRank;
import com.yuqing.myblogServe.dto.ArticleCommentDto;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author yuqing
 * @since 2023-12-01
 */
public interface ArticleService extends IService<Article> {
    Article getArticleByArtId(String articleId);

    boolean publishArticle(Article article);

    int updateArticle(Article article);

    List<ArticleRank> getLikesRank();

    int updateLickArticle(String articleId);

    /**
     * 文章评论列表
     */
    PageBean<ArticleCommentDto> listCommentByPage(Long userId, String articleId, int page, int pageSize);

}
